import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/users/admin/login',
    method: 'post',
    data
  })
}

export function getUserList(data) {
  return request({
    url: '/users/admin/list',
    method: 'post',
    data
  })
}

export function deleteUser(data) {
  return request({
    url: '/users/admin/delete',
    method: 'post',
    data
  })
}

export function createUserDetail(data) {
  return request({
    url: '/users/admin/create',
    method: 'post',
    data
  })
}

export function updateUserDetail(data) {
  return request({
    url: '/users/admin/update',
    method: 'post',
    data
  })
}

export function getUserDetail(params) {
  return request({
    url: '/users/admin/getDetail',
    method: 'get',
    params
  })
}

